import { FC } from "react";
import TrainProblemChoice from "./TrainProblemChoice";
import TrainProblemBlank from "./TraninProblemBlank";
import TrainProblemKnowledge from "./TrainProblemKnowledge";
import TrainProblemDiscuss from "./TrainProblemDiscuss";

const TrainProblemType: FC<any> = ({trainItem, refreshTrain}) => {

    switch (trainItem.type) {
      // case "choice":
      //   return <TrainProblemChoice problem={problem} refreshProblem={refreshProblem} submitTrain={submitTrain}/>;
      // case "blank":
      //   return <TrainProblemBlank problem={problem} refreshProblem={refreshProblem} submitTrain={submitTrain}/>;
      // case "discuss":
      //   return <TrainProblemDiscuss problem={problem} refreshProblem={refreshProblem} submitTrain={submitTrain}/>;
      case "knowledge":
        return <TrainProblemKnowledge trainItem={trainItem} refreshTrain={refreshTrain}/>;
      default:
        return <></>;
    }
  
}

export default TrainProblemType;